package com.zdp.degisn.strategy_model.strategy.car;

/**
 * @author zhengdp
 * @Description 货车
 * @Date 2022/9/14 22:31
 * @Created by zhengdp
 */
public class VanCar implements CarFunction{
    @Override
    public String carName() {
        return "货车";
    }

    @Override
    public void speed() {
        System.out.println("货车百公里加速20秒");
    }

    @Override
    public boolean support(Object obj) {
        return "VanCar".equals(obj);
    }
}
